package com.zmzncs.lmtc.module.shop.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zmzncs.lmtc.module.shop.pojo.park_ticket_set.ParkTicketSet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmzncs.lmtc.module.shop.pojo.park_ticket_set.ParkTicketSetDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 商户-停车券-配置 Mapper 接口
 * </p>
 *
 * @author 高博文
 * @since 2021-06-30
 */
@Repository
@Mapper
public interface ParkTicketSetMapper extends BaseMapper<ParkTicketSet> {

    /**查询停车场停车券*/
    IPage<ParkTicketSetDTO> getParkTicetByParkId(Page page, @Param("parkId") Long parkId);

    /**根据经纬度坐标查询店铺停车券*/
    IPage<ParkTicketSetDTO> getParkTicketByCoordinate(Page page, @Param("longitude") String longitude, @Param("latitude") String latitude);
}
